/**
 * Copyright &copy; 2012-2016 civet All rights reserved.
 */
package cn.mcsys.myadmin.modules.air.entity;

import cn.mcsys.myadmin.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

import java.util.Date;

/**
 * 发布消息Entity
 * @author leopold
 * @version 2018-08-13
 */
public class AirSendMessage extends DataEntity<AirSendMessage> {

//	1:温馨提醒
	public static final int REMINDER = 1;
//	2:航展事务
	public static final int AIR_SHOW = 2;
//	3:交通信息
	public static final int TRAFFIC_INFORMATION  = 3;
//	4:严重事项
	public static final int SERIOUS_MESSAGE = 4;
//	5:站点信息
	public static final int POINT_MESSAGE = 5;
//	接收方
//	观众
	public static final int viewer = 1;
//	工作人员
	public static final int worker = 2;
//	发送方
	public static final int managerplatform = 2;
//	接收方
	public static final int airshowCompany = 1;


	private static final long serialVersionUID = 1L;
	private Integer type;		// 消息类型
	private Integer recevier;		// 接收方
	private String content;		// 消息内容
	private Integer sender;		// 发送方
	private Integer pointId;	// 乘车点ID
	private Date sendDate;		// 发送时间
	private String note;		// 备注
	private Integer sendType;	//推送类型

	public Integer getSendType() {
		return sendType;
	}

	public void setSendType(Integer sendType) {
		this.sendType = sendType;
	}

	public AirSendMessage() {
		super();
	}

	public AirSendMessage(Integer id){
		super(id);
	}


	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}
	
	public Integer getRecevier() {
		return recevier;
	}

	public void setRecevier(Integer recevier) {
		this.recevier = recevier;
	}
	
	@Length(min=0, max=128, message="消息内容长度必须介于 0 和 128 之间")
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
	public Integer getSender() {
		return sender;
	}

	public void setSender(Integer sender) {
		this.sender = sender;
	}
	
	public Date getSendDate() {
		return sendDate;
	}

	public void setSendDate(Date sendDate) {
		this.sendDate = sendDate;
	}
	
	@Length(min=0, max=64, message="备注长度必须介于 0 和 64 之间")
	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public Integer getPointId() {
		return pointId;
	}

	public void setPointId(Integer pointId) {
		this.pointId = pointId;
	}
}